<?php
/*
 * Created on Oct 29, 2009
 * Author: Ramesh Sakibanda
 */
?>
<?php
    
	$liList = "<li class='active' id='liActive'>".$html->tag('img', null, array('src' => $image, 'id' => 'imgActive'))."</li>";
	echo $html->div('demo', $html->div(null, '', array('id' => 'main_image')).$html->tag('ul', $liList, array('class' => 'gallery')));

	echo "<div class='cropform'>";
	echo $form->create('Images', array('action' => 'crop'));

	echo $form->hidden('Ratio', array('name' => 'Ratio', 'value' => $ratio));

	echo $form->hidden('X', array('name' => 'X'));
	echo $form->hidden('Y', array('name' => 'Y'));
	echo $form->hidden('X2', array('name' => 'X2'));
	echo $form->hidden('Y2', array('name' => 'Y2'));
	echo $form->hidden('W', array('name' => 'W'));
	echo $form->hidden('H', array('name' => 'H'));
		
	echo $html->link('crop', '#', array('onclick' => 'document.forms[0].submit()', 'class' => 'magenta small awesome'));
	echo $form->end();
	echo "</div>";
	
?>
